import request from '@/utils/request'

// 查询用户关注列列表
export function listUmUserFocus(query) {
  return request({
    url: '/um/umUserFocus/list',
    method: 'get',
    params: query
  })
}

// 查询用户关注列详细
export function getUmUserFocus(userId) {
  return request({
    url: '/um/umUserFocus/' + userId,
    method: 'get'
  })
}

// 新增用户关注列
export function addUmUserFocus(data) {
  return request({
    url: '/um/umUserFocus',
    method: 'post',
    data: data
  })
}

// 修改用户关注列
export function updateUmUserFocus(data) {
  return request({
    url: '/um/umUserFocus',
    method: 'put',
    data: data
  })
}

// 删除用户关注列
export function delUmUserFocus(userId) {
  return request({
    url: '/um/umUserFocus/' + userId,
    method: 'delete'
  })
}
